﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div class="row">
    <div class="col-xs-12 col-sm-12 widget-container-col">
            @using (Html.BeginForm("ChangePassword", "Account", FormMethod.Post,
                new {name = "myForm", id = "myForm", @class = "form-horizontal", role = "form"}))
            {
                  <div class="widget-box">
            <div class="widget-header">
                <h5 class="widget-title">密码修改</h5>

                <div class="widget-toolbar">
                  
                </div>
            </div>

            <div class="widget-body">
											
             
                <div class="widget-main">
                               
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="TrueName">真实姓名</label>

                        <div class="col-sm-9">
                            <input type="text" id="TrueName" name="TrueName" placeholder="" value="@ZhongheCms.Models.GswTblUser.CurrentUser.TrueName" class="col-xs-10 col-sm-5" readonly />

                        </div>
                    </div>

                    <div class="hr hr-2 dotted"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="OldPwd">原始密码</label>

                        <div class="col-sm-9">
                            <input type="password" id="OldPwd" name="OldPwd" placeholder="原始密码" data-val="true" data-val-required="原始密码不允许为空" class="col-xs-10 col-sm-5" />
                            <span class="field-validation-valid help-block" data-valmsg-for="OldPwd" data-valmsg-replace="true"></span>
                        </div>
                    </div>

                    <div class="hr hr-2 dotted"></div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label no-padding-right" for="NewPwd">新密码</label>

                        <div class="col-sm-9">
                            <input type="password" id="NewPwd" name="NewPwd" placeholder="新密码" class="col-xs-10 col-sm-5" data-val="true" data-val-required="新密码不允许为空" />
                            <span class="field-validation-valid help-block" data-valmsg-for="NewPwd" data-valmsg-replace="true"></span>
                        </div>
                    </div>

                  
                    @if(ViewBag.scode == "1")
                    {
                          <div class="hr hr-2 dotted"></div>
                        <div class="alert alert-success">
                            <button type="button" class="close" data-dismiss="alert">
                                <i class="icon-remove"></i>
                            </button>

                            <strong>
                                <i class="icon-ok"></i>
                                提示信息
                            </strong>

                            密码修改成功!
																
                        </div>
                    }
                    @if (ViewBag.scode == "0")
                    {
                          <div class="hr hr-2 dotted"></div>
                        <div class="alert alert-danger">
                            <button type="button" class="close" data-dismiss="alert">
                                <i class="icon-remove"></i>
                            </button>

                            <strong>
                                <i class="icon-remove"></i>
                                错误提示
                            </strong>

                            @Html.ValidationSummary(true)
																	
                        </div>

                    }												   
                    	<div class="clearfix form-actions">
									<div class="col-md-offset-3 col-md-9">
										<button class="btn btn-info" type="submit">
											&nbsp;&nbsp;<i class="ace-icon fa fa-check bigger-110"></i>
											保存&nbsp;&nbsp;
										</button>

										&nbsp; &nbsp; &nbsp;
										<button class="btn" type="reset">
											&nbsp;&nbsp;<i class="ace-icon fa fa-undo bigger-110"></i>
											清除&nbsp;&nbsp;
										</button>
									</div>
								</div>
														   

                               
													 
                </div>
            
             
               
            </div>
          
        </div>
            }
      
    </div>

  
</div>